package boss.service.ygz.webservice;

public class BossServicePortTypeYGZProxy implements boss.service.ygz.webservice.BossServicePortType {
  private String _endpoint = null;
  private boss.service.ygz.webservice.BossServicePortType bossServicePortType = null;
  
  public BossServicePortTypeYGZProxy() {
    _initBossServicePortTypeProxy();
  }
  
  public BossServicePortTypeYGZProxy(String endpoint) {
    _endpoint = endpoint;
    _initBossServicePortTypeProxy();
  }
  
  private void _initBossServicePortTypeProxy() {
    try {
      bossServicePortType = (new boss.service.ygz.webservice.BossServiceInterfaceLocator()).getYGZBossService();
      if (bossServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)bossServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)bossServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (bossServicePortType != null)
      ((javax.xml.rpc.Stub)bossServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public boss.service.ygz.webservice.BossServicePortType getBossServicePortType() {
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType;
  }
  
  public boss.service.ygz.client.TaxCustomerSyncResponse taxCustomerSync(boss.service.ygz.client.TaxCustomerSyncRequest taxCustomerSyncRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.taxCustomerSync(taxCustomerSyncRequest);
  }
  
  public boss.service.ygz.client.TaxInvoiceServiceResponse taxInvoiceService(boss.service.ygz.client.TaxInvoiceServiceRequest taxInvoiceServiceRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.taxInvoiceService(taxInvoiceServiceRequest);
  }
  
  public boss.service.ygz.client.GetTerminalOtherPriceItemResponse getTerminalOtherPriceItem(boss.service.ygz.client.GetTerminalOtherPriceItemRequest getTerminalOtherPriceItemRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.getTerminalOtherPriceItem(getTerminalOtherPriceItemRequest);
  }
  
  public boss.service.ygz.client.QueryNetInvoiceResponse queryNetInvoice(boss.service.ygz.client.QueryNetInvoiceRequest queryNetInvoiceRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.queryNetInvoice(queryNetInvoiceRequest);
  }
  
  public boss.service.ygz.client.QueryEInvoiceResponse queryEInvoice(boss.service.ygz.client.QueryEInvoiceRequest queryNetInvoiceRequest) throws java.rmi.RemoteException{
	    if (bossServicePortType == null)
	      _initBossServicePortTypeProxy();
	    return bossServicePortType.queryEInvoice(queryNetInvoiceRequest);
	  }
  
  public boss.service.ygz.client.QueryStopNetResponse queryStopNet(boss.service.ygz.client.QueryStopNetRequest queryStopNetRequest) throws java.rmi.RemoteException{
	    if (bossServicePortType == null)
	      _initBossServicePortTypeProxy();
	    return bossServicePortType.queryStopNet(queryStopNetRequest);
  }
  
  public boss.service.ygz.client.DrawNetInvoiceResponse drawNetInvoice(boss.service.ygz.client.DrawNetInvoiceRequest drawNetInvoiceRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.drawNetInvoice(drawNetInvoiceRequest);
  }
  
  public boss.service.ygz.client.PushNetInvoiceResponse pushNetInvoice(boss.service.ygz.client.PushNetInvoiceRequest pushNetInvoiceRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.pushNetInvoice(pushNetInvoiceRequest);
  }
  
  public boss.service.ygz.client.PrestoreSpecialFunResponse prestoreSpecialFun(boss.service.ygz.client.PrestoreSpecialFunRequest prestoreSpecialFunRequest) throws java.rmi.RemoteException{
    if (bossServicePortType == null)
      _initBossServicePortTypeProxy();
    return bossServicePortType.prestoreSpecialFun(prestoreSpecialFunRequest);
  }
  
  
}